home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
C⁄C++
/
Swar
/
swar.h
< prev
next >
Wrap
Text File
|
1992-10-30
|
631b
|
44 lines
#define NIL_POINTER 0L
#define MAX_PLAYERS 4
pascal char isPressed(unsigned short keyID);
int RngRnd(short min, short max);
typedef struct {
Point where;
Point vel;
Boolean isAlive;
Boolean isAccel;
RGBColor color;
short dir;
short anim;
} SHIPREC;
#define MAX_SHOTS 25
typedef struct {
Point where;
Point vel;
Boolean isAlive;
RGBColor color;
short lifeSpan;
short currentShape;
} SHOTREC;
#define MAX_DEBRIS 150
typedef struct {
Point where;
Point vel;
short countdown;
RGBColor color;
} DEBRISREC;
#define MAX_STARS 20
typedef struct {
Point where;
RGBColor color;
} STARREC;